<!DOCTYPE html>
<html lang="en">

<head>
    <title>代理商管理</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- start: CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="css/style.min.css" rel="stylesheet">
    <link href="css/style-responsive.min.css" rel="stylesheet">
    <link href="css/retina.css" rel="stylesheet">
    <link href="css/iconfont.css" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <style>
    #content .row-fluid .smallchart:nth-child(4n-3) {
        margin-left: 0;
    }

    #content dl.row-fluid {
        margin-bottom: 0;
    }

    .agreement {
        text-decoration: none;
        color: #ff2121;
    }

    .agreement:hover {
        text-decoration: underline;
    }

    .control-label-dealer {
        float: left;
        width: 260px;
        text-align: right;
    }

    .delete {
        background-color: red;
        margin-left: 50px;
    }

    .delete:hover {
        background-color: #ce1406;
    }

    .roundShell {
        position: relative;
        margin-bottom: 80px;
    }

    .roundShell::after {
        position: absolute;
        content: "";
        width: 100px;
        height: 100px;
        border: 2px solid #36a9e1;
        top: 50%;
        left: 50%;
        transform: translateY(-50%) translateX(-50%);
        -webkit-transform: translateY(-50%) translateX(-50%);
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

    .roundShell-2::after {
        border: 2px solid #ee492e;
    }
    </style>
    <style type="text/css">
    .jqstooltip {
        position: absolute;
        left: 0px;
        top: 0px;
        visibility: hidden;
        background: rgb(0, 0, 0) transparent;
        background-color: rgba(0, 0, 0, 0.6);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";
        color: white;
        font: 10px arial, san serif;
        text-align: left;
        white-space: nowrap;
        padding: 5px;
        border: 1px solid white;
        z-index: 10000;
    }

    .jqsfield {
        color: white;
        font: 10px arial, san serif;
        text-align: left;
    }
    </style>
</head>

<body>
    <!--头部-->
    <!-- start: Header -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
                <a id="main-menu-toggle" class="hidden-phone open"><i class="icon-reorder"></i></a>
                <div class="row-fluid">
                    <a class="brand span2" href="index.html" style="height:100%;"><span>小凡代理商</span></a>
                </div>
                <!-- start: Header Menu -->
                <div class="nav-no-collapse header-nav">
                    <ul class="nav pull-right">
                        <li class="dropdown hidden-phone hide">
                            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="icon-warning-sign"></i>
                        </a>
                            <ul class="dropdown-menu notifications">
                                <li class="dropdown-menu-title">
                                    <span>You have 11 notifications</span>
                                </li>
                                <li>
                                    <a href="#">
                                    <span class="icon blue"><i class="icon-user"></i></span>
                                    <span class="message">New user registration</span>
                                    <span class="time">1 min</span>
                                </a>
                                </li>
                                <li>
                                    <a href="#">
                                    <span class="icon green"><i class="icon-comment-alt"></i></span>
                                    <span class="message">New comment</span>
                                    <span class="time">7 min</span>
                                </a>
                                </li>
                                <li class="dropdown-menu-sub-footer">
                                    <a>View all notifications</a>
                                </li>
                            </ul>
                        </li>
                        <!-- start: Notifications Dropdown -->
                        <li class="dropdown hidden-phone hide">
                            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="icon-tasks"></i>
                        </a>
                            <ul class="dropdown-menu tasks">
                                <li>
                                    <span class="dropdown-menu-title">You have 17 tasks in progress</span>
                                </li>
                                <li>
                                    <a href="#">
										<span class="header">
											<span class="title">iOS Development</span>
											<span class="percent"></span>
										</span>
                                    <div class="taskProgress progressSlim progressBlue">80</div>
                                </a>
                                </li>
                                <li>
                                    <a class="dropdown-menu-sub-footer">View all tasks</a>
                                </li>
                            </ul>
                        </li>
                        <!-- end: Notifications Dropdown -->
                        <!-- start: Message Dropdown -->
                        <li class="dropdown hidden-phone hide">
                            <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="icon-envelope"></i>
                        </a>
                            <ul class="dropdown-menu messages">
                                <li>
                                    <span class="dropdown-menu-title">You have 9 messages</span>
                                </li>
                                <li>
                                    <a href="#">
                                    <span class="avatar"><img src="/Public/Dealer/img/avatar.jpg" alt="Avatar" /></span>
                                    <span class="header">
											<span class="from">
										    	Łukasz Holeczek
										     </span>
											<span class="time">
										    	6 min
										    </span>
										</span>
                                    <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>
                                </a>
                                </li>
                                <li>
                                    <a href="#">
                                    <span class="avatar"><img src="/Public/Dealer/img/avatar2.jpg" alt="Avatar" /></span>
                                    <span class="header">
											<span class="from">
										    	Megan Abott
										     </span>
											<span class="time">
										    	56 min
										    </span>
										</span>
                                    <span class="message">
                                            Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                        </span>
                                </a>
                                </li>
                                <li>
                                    <a class="dropdown-menu-sub-footer">View all messages</a>
                                </li>
                            </ul>
                        </li>
                        <!-- end: Message Dropdown -->
                        <li class="hide">
                            <a class="btn" href="#">
                            <i class="icon-wrench"></i>
                        </a>
                        </li>
                        <!-- start: User Dropdown -->
                        <!---->
                        <li class="dropdown">
                            <a class="btn account dropdown-toggle" data-toggle="dropdown" href="#">
                                <div class="avatar">
                                    <img src="images/1485075852959.jpg" alt="Avatar" />
                                </div>
                                <div class="user">
                                    <span class="hello">Welcome!</span>
                                    <span class="name">龙小平</span>
                                </div>
                            </a>
                            <ul class="dropdown-menu">
                                <li class="dropdown-menu-title"></li>
                                <li><a href="userinfo.html"><i class="icon-user"></i> 个人信息</a></li>
                                <li><a href="finance.html"><i class="icon-cog"></i> 管理</a></li>
                                <li><a href="login.html"><i class="icon-off"></i> 退出登录</a></li>
                            </ul>
                        </li>
                        <!-- end: User Dropdown -->
                    </ul>
                </div>
                <!-- end: Header Menu -->
            </div>
        </div>
    </div>
    <!-- start: Header -->
    <div class="container-fluid-full">
        <div class="row-fluid">
            <!--左侧菜单/-->
            <!-- start: Main Menu -->
            <div id="sidebar-left" class="span2" ontablet="span2" ondesktop="span2">
                <div class="nav-collapse sidebar-nav" style="height: auto !important;">
                    <ul class="nav nav-tabs nav-stacked main-menu">
                        <li>
                            <a class="dropmenu" href="javascript:void(0);"><span>收益统计</span></a>
                            <ul>
                                <li><a class="submenu" href="sysee.html"><span>收益预览</span></a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="dropmenu" href="javascript:void(0);"><span>用户管理</span></a>
                            <ul>
                                <li><a class="submenu" href="cyguanli.html"><span>成员管理</span></a></li>
                                <li><a class="submenu" href="ckxufei.html"><span>创客续费</span></a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="dropmenu" href="javascript:void(0);"><span>代理商管理</span></a>
                            <ul style="display: block;">
                                <li class="active"><a class="submenu" href="dealer.html"><span>代理商团队</span></a></li>
                            </ul>
                        </li>
                        <li>
                            <a class="dropmenu" href="javascript:void(0);"><span>系统管理</span></a>
                            <ul>
                                <li><a class="submenu" href="finance.html"><span>财务管理</span></a></li>
                                <li><a class="submenu" href="userinfo.html"><span>我的信息</span></a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <!-- end: Main Menu -->
            <!-- start: Content -->
            <div id="content" class="span10">
                <div class="row-fluid">
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">龙国良</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><a href="javascript:;" style="color: #ff151f"  onclick='qrcode_show("15111965757")'>待付款</a></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">龙国良</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">男</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">15111965757</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="564" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("564")'>详情</a>
                            <a href="javascript:void(0);" onclick="no_pay(564)" class="btn btn-middle btn-success delete">删除</a> </div>
                    </div>
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">陈淑英</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><a href="javascript:;" style="color: #ff151f"  onclick='qrcode_show("13633513371")'>待付款</a></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">陈淑英</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">女</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">13633513371</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="28211" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("28211")'>详情</a>
                            <a href="javascript:void(0);" onclick="no_pay(28211)" class="btn btn-middle btn-success delete">删除</a> </div>
                    </div>
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">余虹韵</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><span style="color:#ff151f;">10000.00</span></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">余虹韵</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">女</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">15023180634</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">时间：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">2017-05-15 14:34:09</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="29262" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("29262")'>详情</a>
                        </div>
                    </div>
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">谭克松</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><span style="color:#ff151f;">10000.00</span></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">谭克松</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">男</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">18680846655</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">时间：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">2017-07-03 18:06:58</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="30055" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("30055")'>详情</a>
                        </div>
                    </div>
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">谢彩霞</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><span style="color:#ff151f;">10000.00</span></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">谢彩霞</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">女</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">13667698000</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">时间：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">2017-05-10 11:17:08</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="37173" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("37173")'>详情</a>
                        </div>
                    </div>
                    <div class="span3 smallchart box mobileHalf">
                        <div class="title" style="background-color: #78cd51;">代理商(<span class="dealer-name">龚春梅</span>)</div>
                        <div class="content">
                            <div class="content-top">
                                <span>总消费（元）</span>
                                <h1 class="top-title"><span style="color:#ff151f;">10000.00</span></h1>
                            </div>
                            <div class="content-bottom">
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">类型：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">个人</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">姓名：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">龚春梅</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">性别：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">女</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">电话：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">18983683888</dd>
                                </dl>
                                <dl class="row-fluid">
                                    <dt class="span4 text-right">时间：</dt>
                                    <dd class="span8 text-left" style="padding-right:10px">2017-05-19 16:37:30</dd>
                                </dl>
                                <!--<div  style="margin-right: 20px;margin-top: 20px; float: right">
								  <a class="btn btn-middle btn-success" href="javascript:void(0);" id="no_pay" oid="39155" style="background-color: #ff151f" >取消付款</a>
							  </div>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-success" href="javascript:void(0);" data-toggle="modal" data-target="#dealer_detail_modal" onclick='get_info("39155")'>详情</a>
                        </div>
                    </div>
                    <div class="span3 smallchart box blue mobileHalf">
                        <div class="title">添加代理商</div>
                        <div class="content dealer-more" style="height:232px;color:#383e4b;padding-top: 40px;padding-bottom: 0">
                            <div class="content-top">
                                <div class="roundShell roundShell-1">
                                    <span style="font-size: 22px;margin-bottom: 7px;display: inline-block;color:#36a9e1">200套</span>
                                    <br/>
                                    <span style="font-size: 13px;color:#919191">50元/套</span>
                                </div>
                                <div class="roundShell roundShell-2">
                                    <span style="font-size: 22px;margin-bottom: 7px;display: inline-block;color:#ee492e">4500套</span>
                                    <br/>
                                    <span style="font-size: 13px;color:#919191">45元/套</span>
                                </div>
                                <!--<span style="text-decoration: line-through;color:#666;">原价:<span class="ori-price">15,999</span>元</span>-->
                            </div>
                            <div class="content-bottom">
                                <!--<p>享代理商推荐奖2000元</p>-->
                                <!--<p>享代理商持续收益10%奖励</p>-->
                            </div>
                        </div>
                        <div class="value"><a class="btn btn-middle btn-primary" href="javascript:void(0);" data-toggle="modal" id="pays" data-target="#add_dealer_modal">立即开通</a></div>
                    </div>
                </div>
            </div>
            <!-- end: Content -->
        </div>
        <!--/fluid-row-->
        <!-- 代理商详情模态框开始	-->
        <div class="modal hide fade" id="dealer_detail_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h3>代理商资料</h3>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">性别：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="dealer_sex">男</p>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">绑定电话号码：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="dealer_tel">15803610275</p>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">头像：</label>
                            <div class="controls">
                                <div class="licence-box">
                                    <img src="./img/avatar.jpg" id="dealer_img">
                                </div>
                            </div>
                        </div>
                        <div class="control-group info_gr">
                            <label class="control-label">身份证号码：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="dealer_sfz">610529198808230956</p>
                            </div>
                        </div>
                        <div class="control-group info_gr">
                            <label class="control-label">家庭住址：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="dealer_add">重庆市江北区观音桥华润万象城3栋28-6</p>
                            </div>
                        </div>
                        <div class="control-group info_gr">
                            <label class="control-label">身份证照：</label>
                            <div class="controls">
                                <div class="licence-box">
                                    <img src="./img/avatar.jpg" id="sfz_img">
                                </div>
                            </div>
                        </div>
                        <div class="control-group info_qy">
                            <label class="control-label">公司名称：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="comp_name">凡驰科技</p>
                            </div>
                        </div>
                        <div class="control-group info_qy">
                            <label class="control-label">公司简称：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="comp_abb">小凡</p>
                            </div>
                        </div>
                        <div class="control-group info_qy">
                            <label class="control-label">营业执照编号：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="business_license">XX451-6</p>
                            </div>
                        </div>
                        <div class="control-group info_qy">
                            <label class="control-label">公司地址：</label>
                            <div class="controls">
                                <p class="help-block" style="padding-top: 5px;" id="comp_address">重庆市江北区观音桥华润万象城3栋28-6</p>
                            </div>
                        </div>
                        <div class="control-group info_qy">
                            <label class="control-label">营业证照：</label>
                            <div class="controls">
                                <div class="licence-box">
                                    <img src="./img/avatar.jpg" id="business_license_img">
                                </div>
                            </div>
                        </div>
                    </fieldset>
                </form>
            </div>
            <div class="modal-footer">
                <!--<a href="javascript:void(0);" class="btn btn-primary">修改</a>-->
                <a href="javascript:void(0);" class="btn btn-danger" data-dismiss="modal">返回</a>
            </div>
        </div>
        <!-- 代理商详情模态框结束	-->
        <!-- 充值创客弹窗-->
        <div class="modal hide fade" id="add_chuang_num">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h3 id="chuang_nums_title">请选择购买创客系统套餐数</h3>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">购创客数：</label>
                            <input type="hidden" value="" id="phones">
                            <div class="controls">
                                <select id="chuang_nums" name="chuang_nums">
                                    <option value="10000">购买200套（总价10000元）</option>
                                    <option value="200000">购买4500套（总价200000元）</option>
                                </select>
                            </div>
                        </div>
                    </fieldset>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary withdraw" id="add_chuang_num_button">确认</a>
                <a href="javascript:void(0);" class="btn btn-danger" data-dismiss="modal">取消</a>
            </div>
        </div>
        <!-- 充值创客弹窗结束-->
        <!--添加代理商模态框开始	-->
        <div class="modal hide fade" id="add_dealer_modal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" onclick='javascript:window.location.href="/Dealer/Dealer/index";'>×</button>
                <input type="hidden" id="type" value="">
                <input type="hidden" id="phone" value="18502347755">
                <input type="hidden" id="pay_money" value="200000">
                <h3 id="tt_title">添加代理商资料</h3>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" id="dealer_form" action="/dealer/dealer/add_dealer.html" method="post">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">购创客数：</label>
                            <div class="controls">
                                <select id="chuang_num" name="dealer_chuang_num">
                                    <option value="10000">购买200套（总价10000元）</option>
                                    <option value="200000">购买4500套（总价200000元）</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group" data-type="1,2">
                            <label class="control-label">类型：</label>
                            <div class="controls">
                                <select id="dealer_type" name="dealer_type">
                                    <option value="1">个人</option>
                                    <option value="2">企业</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group" data-type="1">
                            <label class="control-label">姓名：</label>
                            <div class="controls">
                                <input type="text" name="dealer_name" placeholder="请输入代理商姓名">
                            </div>
                        </div>
                        <div class="control-group" data-type="2">
                            <label class="control-label" for="dealer_comp_name">公司名称：</label>
                            <div class="controls">
                                <input type="text" id="dealer_comp_name" name="dealer_comp_name" placeholder="请输入公司名称">
                            </div>
                        </div>
                        <div class="control-group" data-type="2">
                            <label class="control-label" for="dealer_comp_name_abbr">公司简称：</label>
                            <div class="controls">
                                <input type="text" id="dealer_comp_name_abbr" name="dealer_comp_name_abbr" placeholder="请输入公司简称">
                            </div>
                        </div>
                        <div class="control-group" data-type="1,2">
                            <label class="control-label">性别：</label>
                            <div class="controls">
                                <label class="radio" style="display:inline-block;">
                                    <input type="radio" name="dealer_sex" value="1">男
                                </label>
                                <label class="radio" style="display:inline-block;">
                                    <input type="radio" name="dealer_sex" value="0">女
                                </label>
                            </div>
                        </div>
                        <div class="control-group" data-type="1">
                            <label class="control-label" for="dealer_identify">身份证号码：</label>
                            <div class="controls">
                                <input type="text" id="dealer_identify" name="dealer_identify" placeholder="请输入身份证号码">
                            </div>
                        </div>
                        <div class="control-group" data-type="2">
                            <label class="control-label" for="dealer_licence">营业执照编号：</label>
                            <div class="controls">
                                <input type="text" id="dealer_licence" name="dealer_licence" placeholder="请输入营业执照编号">
                            </div>
                        </div>
                        <div class="control-group" data-type="1,2">
                            <label class="control-label" for="dealer_pass">登录密码：</label>
                            <div class="controls">
                                <input type="password" id="dealer_pass" name="dealer_pass" placeholder="请输入登录密码">
                            </div>
                        </div>
                        <div class="control-group" data-type="1">
                            <label class="control-label" for="dealer_address">家庭住址：</label>
                            <div class="controls">
                                <input type="text" id="dealer_address" name="dealer_address" placeholder="请输入家庭住址">
                            </div>
                        </div>
                        <div class="control-group" data-type="2">
                            <label class="control-label" for="dealer_comp_address">公司地址：</label>
                            <div class="controls">
                                <input type="text" id="dealer_comp_address" name="dealer_comp_address" placeholder="请输入公司地址">
                            </div>
                        </div>
                        <div class="control-group" data-type="1">
                            <label class="control-label" for="">身份证照：</label>
                            <div class="controls">
                                <div class="col-sm-10" class="imgUpload">
                                    <div class="add_img_ipt" id="idcar_img">
                                        <img src="img/h_tjia.png" />
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- <div class="control-group" data-type="2">
                            <label class="control-label" for="">营业执照：</label>
                            <div class="controls">
                                <div class="col-sm-10" class="imgUpload">
                                    <div class="add_img_ipt" id="licence_img">
                                        <img src="img/h_tjia.png" />
                                    </div>
                                </div>
                            </div>
                        </div> -->
                        <div class="control-group" data-type="1,2">
                            <label class="control-label" for="dealer_phone">绑定手机号码：</label>
                            <div class="controls">
                                <input type="tel" id="dealer_phone" name="dealer_phone" placeholder="请输入手机号码">
                            </div>
                        </div>
                        <div class="control-group" data-type="1,2">
                            <label class="control-label" for="phonecode">手机验证码：</label>
                            <div class="controls">
                                <input type="tel" style="width: 150px" id="phonecode" name="phonecode" placeholder="输入验证码">
                                <a href="javascript:void(0);" class="btn btn-primary" id="getcode">获取验证码</a>
                            </div>
                        </div>
                        <div>
                            <label class="control-label-dealer">
                                <input type="checkbox" id="canUp" /><span>我已仔细阅读</span></label>
                            <!--<a href="agreement.html" target="_blank" class="agreement" title="代理商服务协议">《代理商服务协议》</a>-->
                            <a href="agreement.html" target="_blank" class="agreement" title="代理商服务协议">《代理商服务协议》</a>
                        </div>
                    </fieldset>
                </form>
            </div>
            <div class="modal-footer">
                <a href="javascript:void(0);" class="btn btn-primary" id="add_dealer_button">保存并支付</a>
                <a href="javascript:void(0);" class="btn btn-danger" data-dismiss="modal">取消</a>
            </div>
        </div>
        <input type="file" class="file_ipt hide" />
        <!--添加代理商模态框结束	-->
        <div class="clearfix"></div>
        <footer>
            <p>
                <span style="text-align:left;">Copyright &copy; 2014-2018 凡驰科技  All rights reserved.</span>
            </p>
        </footer>
    </div>
    <!--/.fluid-container-->
    <!-- start: JavaScript-->
    <script src="/Public/Dealer/js/jquery.qrcode.min.js"></script>
    <script>
    $(function() {
        //左侧菜单下拉效果
        $('.dropmenu').click(function() {
            var $ul = $(this).siblings('ul');
            if ($ul.is(':visible')) {
                $(this).siblings('ul').hide(500);
            } else {
                $(this).siblings('ul').show(500);
            }
        });
        //控制高度
        var wh = $(window).height() - 90;
        $('#content').css('min-height', wh);
//左侧菜单隐藏
    $('.icon-reorder').click(function(){
        if($('#sidebar-left').is(':visible')){
            $('#sidebar-left').hide();
            $('#content').addClass('full');
            $('#main-menu-toggle').addClass('close');
            $('.brand').addClass('noBg');
        }else{
            $('#sidebar-left').show();
            $('#content').removeClass('full');
            $('#main-menu-toggle').removeClass('close');
            $('.brand').removeClass('noBg');
        }
        
    });
    });





    function get_info(uid) { //代理商详情页赋值
        $.post('/dealer/dealer/user_info.html', { uid: uid }, function(info) {
            console.log(info);
            var type = info.dealer_type;
            if (type == 1) {
                $('.info_qy').css('display', 'none');
                $('.info_gr').css('display', 'block');

            } else {
                $('.info_gr').css('display', 'none');
                $('.info_qy').css('display', 'block');

            }



        });

    }

    //取消付款
    function no_pay(uid) {
        var xx = confirm('确认取消付款吗?');
        if (xx == true) {
            alert('已经取消');
        }
    }

    //上传身份证图片
    $(function() {
        $('#idcar_img').click(function() {
            var $this = $(this);
            $('body').append('<script src="https://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"><\/script>');
            // upinit('#avatar',1,'adminuser/avatar/','img');
            $('.file_ipt').trigger('click');

            $('body').on('change', '.file_ipt', function(e) {

                var client = new OSS.Wrapper({
                    region: 'oss-cn-shenzhen',
                    accessKeyId: '0JEAvJyhmE4EtM6x',
                    accessKeySecret: '1zPpAgwxmK3kBFypV1flPHcdOq4pl1',
                    bucket: 'fanchi',
                    secure: true,
                });
                var file = e.target.files[0];
                var timestamp = new Date().getTime();
                var storeAs = 'adminuser/avatar/' + timestamp + '.' + file.name.split('.').pop();
                client.multipartUpload(storeAs, file).then(function(result) {
                    console.log(result);
                    var img = 'http://img.fanchikj.com/' + storeAs;
                    var str = '<img width="99px" height="99px" src="' + img + '"/>';
                    str += '<input type="hidden" name="dealer_identify_pic" value="' + img + '">';
                    $this.html(str);
                    //                            $this.children('img').attr('src',img);
                }).catch(function(err) {
                    console.log(err);
                });
            });

        });
    });
    </script>
    <!-- end: JavaScript-->
</body>

</html>